import App from './App'

//
import { requestApi } from './common/utils.js'
Vue.prototype.$requestApi = requestApi



// 引入全局uView
import uView from "uview-ui";
Vue.use(uView);

// #ifndef VUE3
import Vue from 'vue'



Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})


// http拦截器，将此部分放在new Vue()和app.$mount()之间，才能App.vue中正常使用
import httpInterceptor from '@/common/request.js'
Vue.use(httpInterceptor, app)


app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif